<?php
include("../../inc/global.inc");
include("islogin.php");

if(isset($_POST['submit']) && $_POST['submit'])
{
	$array['status'] = 1;
	$array['updatetime'] = time();
	$true = $db->update('sd_tuoguan', $array,"id=".$_POST['id']." and username2='".$per_row['m_user']."'");
	if($true)
	{
		echo "<script>alert('托管成功');location='/member/tuoguan/shoukuan.php?fukuan=2';</script>";exit;
	}
	else
	{
		echo "<script>alert('托管失败，未知原因。请联系管理员');location='".HTTP_REFERER."';</script>";exit;
	}
}
$yinhhang = $db->get_one("select * from sd_yinhang where userid=".$per_row['id']);
if(!$yinhhang){echo "<script>alert('请填写银行信息。');location='/member/tuoguan/yh.php';</script>";exit;}
$id = intval($_GET['id']);
$head['title']='申请产品款托管交易';	
$sql="select * from sd_tuoguan where id=$id and username2='".$per_row['m_user']."'";
$rows=$db->get_one($sql);
include("top.php");
?>
<div class="con">
		   <div class="top5"><span>您当前位置：<a href="/help/">会员助手</a> &gt;&gt; 确定托管交易</span></div>
		   <?php include("left.php");?>
		   <div class="right">
		      <div class="y_5"></div>
		       <div class="con-tt"><span>确定托管交易信息</span></div>
			   <div class="con-t1"><span></span></div>
			   <div class="con-t2"><form action="" method="post">
               <input type="hidden" name="id" value="<?php echo $id;?>" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
			         <tr>
		                <td  height="28" align="center" bgcolor="#EFF6FF">产品名称：</td>
		                <td colspan="2" bgcolor="#f9f9f9">&nbsp;<a href="<?=$rows['url']?>" target="_blank"><?=$rows['title']?></a></td>
	                </tr>
	                 <tr>
	                 <tr>
		                <td  height="28" align="center" bgcolor="#EFF6FF">联系人：</td>
		                <td colspan="2" bgcolor="#f9f9f9"><input name="info[truename]" type="text" class="txt1" id="truename" value="<?php echo $rows['truename'];?>"/>  <span>*</span></td>
	                </tr>
	                 <tr>
		                <td height="30" bgcolor="#EFF6FF" align="center"> 联系电话：</td>
		                <td colspan="2" bgcolor="#f9f9f9"><input name="info[tel]" type="text"class="txt1" id="tel" value="<?php echo $rows['tel'];?>"/>  <span>*</span></td>
	                </tr>
	                 <tr>
		                <td height="30" bgcolor="#EFF6FF" align="center">联系QQ：</td>
		                <td bgcolor="#f9f9f9"><input name="info[qq]" type="text" class="txt1" value="<?php echo $rows['qq'];?>"/></td>
	                	<td bgcolor="#f9f9f9" style="border-left:0px;"></td>
                    </tr>
	                 <tr>
		                <td height="30" bgcolor="#EFF6FF" align="center">联系邮箱：</td>
		                <td colspan="2" bgcolor="#f9f9f9"><input name="info[email]" type="text"class="txt1" value="<?php echo $rows['email'];?>"/></td>
	                </tr>
	                 <tr>
		                <td height="30" bgcolor="#EFF6FF" align="center">交易金额：</td>
		                <td colspan="2" bgcolor="#f9f9f9"><input name="info[price]" type="text" class="txt2" id="price" value="<?php echo $rows['price'];?>"/> 元 <span>*</span></td>
	                </tr>
	                <tr>
		               <td height="205" bgcolor="#EFF6FF" align="center">产品名称及交易详细信息：</td>
		               <td colspan="2" bgcolor="#f9f9f9"><?php echo $rows['content'];?></td>
	                </tr>
	                 <tr>
		                <td height="35"  align="center" bgcolor="#EFF6FF">提示：</td>
		                <td colspan="2" bgcolor="#f9f9f9">&nbsp;托管费2%我们直接在交易款项中扣除，请买卖双方交易前协商支付托管费。</td>
	                </tr>
	                 <tr>
		                 <td height="30" align="center" bgcolor="#EFF6FF">托管交易内容和具体要求：</td>
		                 <td colspan="2" bgcolor="#f9f9f9">&nbsp;<input id="tongyi" type="checkbox" checked="checked"/><a href="/tuoguan/about.php" target="_blank">&nbsp;我同意三帝贸易网托管交易规则</a></td>
	                 </tr>
	                  <tr>
		                  <td height="35" bgcolor="#EFF6FF">&nbsp;</td>
		                  <td colspan="2" bgcolor="#f9f9f9">&nbsp;<input name="submit" type="submit" class="btn" id="submit" value="确定托管交易" /></td>
	                  </tr>
                 </table></form>
               </div>
		 </div>
		 <div class="cl"></div>
</div> 
<?php include("foot.php");?>